package com.zhuzg;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.context.config.annotation.RefreshScope;

@SpringBootApplication
@EnableDiscoveryClient  // 注册到注册中心  服务被发现
@RefreshScope
public class StartAService {

    public static void main(String[] args) {
        SpringApplication.run(StartAService.class,args);
        System.out.printf("服务A启动成功");
    }

}
